package com.borrowed.book.user.mapper;

import com.borrowed.book.user.domain.SUser;
import com.borrowed.book.user.domain.SelectUserDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SUserMapper {
    int insert(SUser record);

    int insertSelective(SUser record);

    SUser selectUserByLoginName(String username);

    SUser selectUserByOpenId(String openId);

    List<SelectUserDto> selectUserList(Map map);

    void updateUserGold(Map map);

    void updateUserInfo(SUser user);
}